Server Watch Plugin SDK Date: 6 Feb 2004
Release: 1.0
Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

DFNetUtil Class Reference

#include <DFNetUtil.h>

List of all members.


Detailed Description

Provides a set of helper functions to simplify the network coding process.


Public Member Functions

 DFNetUtil ()
virtual ~DFNetUtil ()

Static Public Member Functions

SWRESULT getServerFromString (LPCTSTR strAddr, ULONG &lServer)
SWRESULT getStringFromWinsockError (int iErr, CAtlString &strMsg)


Constructor & Destructor Documentation

DFNetUtil::DFNetUtil  ) 
 

virtual DFNetUtil::~DFNetUtil  )  [virtual]
 


Member Function Documentation

SWRESULT DFNetUtil::getServerFromString LPCTSTR  strAddr,
ULONG &  lServer
[static]
 

Retrieves the proper address for the IN_ADDR structure (ULONG) from either an IPv4 address or Domain Name.

Returns:
SWResult defining the success of the function
Return values:
SW_OK values In lServer are usable
SW_FAIL String was not valid, call WSAGetLastError for more info

SWRESULT DFNetUtil::getStringFromWinsockError int  iErr,
CAtlString &  strMsg
[static]
 

Retrieves a human readable description of the passed in WinSock error and returns it in strMsg

Returns:
SWResult defining the success of the function
Return values:
SW_OK The value was found in this function
SW_Fail The value could not be found and strMsg = "Uknown Error Occured"


The documentation for this class was generated from the following file:

Copyright (c) 2003-2004, Deep Fried Software. All rights reserved.